#pragma once


namespace RobotCollisionDetection{
public ref class Logger{
	static const int itemsTreshold = 100;
	delegate void SetTextDelegate(System::String^ text);	
	static void DeleteRedundantItems();
public:
	static bool bError, bInfo, bDebug, bCollision, bWarning;
	static System::Windows::Forms::ListView^ listView;
	static enum class ErrorType {
		eError,
		eWarning,
		eMessage,
		eDebug,
		eCollision
	};
	Logger(/*System::Windows::Forms::ListView^ lstView*/)/*: listView(lstView)*/ {bError = bInfo = bDebug = bCollision = bWarning = false;}
	
	static void InsertLog(System::String^ errorText, ErrorType eType);
	
	static void InsertErrorMessage(System::String^ errorText);
	static void InsertWarningMessage(System::String^ errorText);
	static void InsertInfoMessage(System::String^ errorText);
	static void InsertDebugMessage(System::String^ errorText);
	static void InsertCollisionMessage(System::String^ errorText);
	
};
}